package net.caixiaomi.info.model;

import net.caixiaomi.info.base.quickadapter.entity.MultiItemEntity;
import net.caixiaomi.info.util.Constants;

import java.util.List;

/**
 * Created by suntian on 2018/7/24.
 */

public class MatchLiveEventEntity implements MultiItemEntity {

    private String eventCode;
    private String eventName;
    private String eventType;
    private String isHa;
    private String minute;
    private String person;
    private String personId;

    private List<MatchLiveDataEntity> matchTotals;

    public void setType(int type) {
        this.type = type;
    }

    private int  type;


    public String getEventCode() {
        return eventCode;
    }

    public void setEventCode(String eventCode) {
        this.eventCode = eventCode;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getIsHa() {
        return isHa;
    }

    public void setIsHa(String isHa) {
        this.isHa = isHa;
    }

    public String getMinute() {
        return minute;
    }

    public void setMinute(String minute) {
        this.minute = minute;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    @Override
    public int getItemType() {
        if(type>0){
            return type;
        }
        return Constants.ITEM_MATCH_LIVE1;
    }

    public List<MatchLiveDataEntity> getMatchTotals() {
        return matchTotals;
    }

    public void setMatchTotals(List<MatchLiveDataEntity> matchTotals) {
        this.matchTotals = matchTotals;
    }
}
